﻿//-----------------------------------------------------------------------
// <copyright company="Microsoft Corporation">
//     Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Microsoft.DevDiv.Wpf.Samples
{
    using System;

    public class LiveSearchImageThumbnail
    {
        public Uri Url
        {
            get
            {
                return this.url =
                    this.url ?? this.inner.GetValueAsUrl("./mms:Url");
            }
        }

        internal static LiveSearchImageThumbnail Create(LiveSearchXmlObject inner)
        {
            return new LiveSearchImageThumbnail()
            {
                inner = inner
            };
        }

        private Uri url;
        private LiveSearchXmlObject inner;
    }
}